#include "main.h"
#include "core.h"
#include "fsmc_lcd.h"
#include "485com.h"
#include "peripheral_init.h"
#include "sd_app.h"
using namespace std;
	
void Delay(vu32 nCount)
{
  for(; nCount != 0; nCount--);
}
	
int main()
{
	data_init();
	Syst_Init();

#ifndef  USING_STAR_UP
	star_485();
#endif // ! USING_STAR_UP
	sd_init();

	while(1)
	{
		process();
		Delay(0xff);
	}
}


